package com.stone.framework.message.user;

import javax.validation.constraints.Pattern;

import com.stone.framework.message.SortableBody;

import io.swagger.annotations.ApiModelProperty;

public class RolePageReqBody extends SortableBody {

    @ApiModelProperty(value = "角色代码")
    private String code;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "角色描述")
    private String desc;

    @ApiModelProperty(value = "角色状态：DISABLED|ENABLED")
    @Pattern(regexp = "(DISABLED|ENABLED)", message = "[state] must be 'DISABLED|ENABLED'")
    private String state;

    @Override
    @ApiModelProperty(value = "排序：createDate|updateDate|name|code")
    @Pattern(regexp = "(createDate|updateDate|name|code)",
        message = "[orderBy] must be 'createDate|updateDate|name|code'")
    public String getOrderBy() {
        return super.getOrderBy();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
